import cn.geminis.devops.jenkins.AnalyzeJava
import cn.geminis.devops.jenkins.AnalyzeNodejs

def call() {
    def analyze;
    switch (env.CODE_TYPE) {
        case 'nodejs':
            analyze = new AnalyzeNodejs();
            break;
        case 'java':
            analyze = new AnalyzeJava();
            break;
    }
    return analyze;
}